const express = require('express');
const router = express.Router();

const add_item = require('./modules/add');
const query_item = require('./modules/query');
const delete_item = require('./modules/delete');
const edit_item = require('./modules/edit');

// 模块化管理路由模块
const routes = [add_item, query_item, delete_item, edit_item];

routes.forEach(val => {
  router.use(val);
});

module.exports = router;